package com.ddwl.schema.vo.order;

import com.ddwl.schema.vo.goods.SkuVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.Instant;

/**
 * 类SeckillItemBo.java的实现描述：秒杀商品入参
 * @author wenbin
 */
@Data
@ApiModel("秒杀商品入参")
public class SeckillItemVo {


    @ApiModelProperty("秒杀活动商品行id")
    private String id;

    @ApiModelProperty("秒杀活动id")
    private String seckillId;

    @ApiModelProperty("商品主图")
    private String imageUrl;

    //@ApiModelProperty(value = "skuId")
    //private String skuId;
    @ApiModelProperty(value = "barcode")
    private String barcode;

    @ApiModelProperty(value = "商品id")
    private String itemId;

    @ApiModelProperty(value = "商品id")
    private String itemName;

    @ApiModelProperty(value = "商品金额")
    private String itemPrice;

    @ApiModelProperty(value = "虚拟销量")
    private String oldSaleCount;

    @ApiModelProperty(value = "商品描述")
    private String itemSpecs;

    @ApiModelProperty(value = "秒杀价格")
    private BigDecimal seckillPrice;

    @ApiModelProperty(value = "秒杀数量")
    private Integer seckillCount;

    @ApiModelProperty(value = "下单数量")
    private Integer seckillSaleCount;

    @ApiModelProperty(value = "限购数量")
    private Integer seckillLimit;

    @ApiModelProperty(value = "秒杀商品排序")
    private Integer seckillSort;

    @ApiModelProperty("创建时间")
    private Instant gmtCreated;

    @ApiModelProperty("修改时间")
    private Instant gmtModified;

    @ApiModelProperty(value = "开始时间")
    private Instant startTime;

    @ApiModelProperty(value = "结束时间")
    private Instant endTime;

    @ApiModelProperty("秒杀商品详细信息")
    private SkuVo skuVo;

    @ApiModelProperty("随机码")
    private String token;

    @ApiModelProperty("是否已经释放库存 0否 1是")
    private Integer isReleaseStock;

    @ApiModelProperty("剩余库存")
    private Integer lastCount;
}

